package com.xlx.openLink.snmp.base;

import lombok.Data;

import java.io.Serializable;

/**
 * @author Admin
 */
@Data
public class SNMPTarget implements Serializable {
    public String nodeIP;
    public long targetSnmpTimeout = 5000L;
    public int targetSnmpRetry;
    public int snmpVersion;
    public String readCommunity;
    public String writeCommunity;
    public String proxySNMPGateIP;
    public int port;
    public String v3User;
    public int v3SecurityLevel;
    public String v3EngineName;
    public String v3ContextName;
    public int v3AuthProtocol;
    public String v3AuthPasswd;
    public int v3PrivacyProtocol;
    public String v3PrivacyPasswd;
    public static final int VERSION1 = 0;
    public static final int VERSION2C = 1;
    public static final int VERSION3 = 3;
    public static final int V3SecurityLevelNOAUTHNOPRIV = 1;
    public static final int V3SecurityLevelAUTHNOPRIV = 2;
    public static final int V3SecurityLevelAUTHPRIV = 3;
    public static final int V3AuthProtocolMD5 = 1;
    public static final int V3AuthProtocolSHA = 2;
    public static final int V3PrivacyProtocolDES = 1;

    public SNMPTarget() {

    }


    public SNMPTarget copyTarget() {
        SNMPTarget localSNMPTarget = new SNMPTarget();
        SNMPTarget tmp10_9 = localSNMPTarget;
        SNMPTarget tmp11_10 = tmp10_9;
        SNMPTarget tmp17_16 = localSNMPTarget;
        SNMPTarget tmp23_22 = localSNMPTarget;
        SNMPTarget tmp29_28 = localSNMPTarget;
        SNMPTarget tmp35_34 = localSNMPTarget;
        localSNMPTarget.nodeIP = this.nodeIP;
        localSNMPTarget.port = this.port;
        tmp35_34.proxySNMPGateIP = this.proxySNMPGateIP;
        tmp35_34.readCommunity = this.readCommunity;
        localSNMPTarget.snmpVersion = this.snmpVersion;
        tmp29_28.targetSnmpRetry = this.targetSnmpRetry;
        tmp29_28.targetSnmpTimeout = this.targetSnmpTimeout;
        localSNMPTarget.v3AuthPasswd = this.v3AuthPasswd;
        tmp23_22.v3AuthProtocol = this.v3AuthProtocol;
        tmp23_22.v3ContextName = this.v3ContextName;
        localSNMPTarget.v3EngineName = this.v3EngineName;
        tmp17_16.v3PrivacyPasswd = this.v3PrivacyPasswd;
        tmp17_16.v3PrivacyProtocol = this.v3PrivacyProtocol;
        localSNMPTarget.v3SecurityLevel = this.v3SecurityLevel;
        tmp11_10.v3User = this.v3User;
        tmp10_9.writeCommunity = this.writeCommunity;
        return tmp11_10;
    }
}